package io.a;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;

public class T {


    public static void main(String[] args) {

        // 示例毫秒数
        long

        millis = 1729612800000L; // 2024-10-23T00:00
        millis = 1729699200000L; // 2024-10-24T00:00

        millis = 1730044800000L; // 2024-10-28T00:00
        millis = 1730131200000L; // 2024-10-29T00:00

        millis = 1730131200000L; // 2024-10-29T00:00
        millis = 1730217600000L; // 2024-10-30T00:00

        millis = 1730217600000L; // 2024-10-30T00:00
        millis = 1730390400000L; // 2024-11-01T00:00

        millis = 1730390400000L; // 2024-11-01T00:00
        millis = 1731081600000L; // 2024-11-09T00:00

        millis = 1730341378711L; // 2024-10-31T10:22:58.711
        millis = 1738290178711L; // 2025-01-31T10:22:58.711
        millis = 1725540024770L; //



        // 1. 将毫秒数转换为 Instant
        Instant instant = Instant.ofEpochMilli(millis);

        // 2. 将 Instant 转换为 ZonedDateTime（假设使用系统默认时区）
        ZoneId zoneId = ZoneId.systemDefault();
        ZonedDateTime zonedDateTime = instant.atZone(zoneId);

        // 3. 将 ZonedDateTime 转换为 LocalDateTime
        LocalDateTime localDateTime = zonedDateTime.toLocalDateTime();

        // 输出结果
        System.out.println("LocalDateTime: " + localDateTime);
    }


}
